package operators;

public class Exercise5 {

  public static void main(String[] args) {

    Dog dog1 = new Dog("spot", "ruff!");

    Dog dog2 = new Dog("scuffy", "wurf!");

    System.out.println(dog1.getName() + " says " + dog1.getSays());
    System.out.println(dog2.getName() + " says " + dog2.getSays());
  }

}

class Dog {

  private String name;
  private String says;

  public Dog(String name, String says) {
    this.name = name;
    this.says = says;

  }

  public String getName() {
    return name;
  }

  public String getSays() {
    return says;
  }

}
